package com.ynkj.teleprompter.db;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

import androidx.annotation.Nullable;

/**
 * 数据库
 */
public class MySQLite extends SQLiteOpenHelper {

    static String name="teleprompter.db";
    static int dbVersion=1;
    public MySQLite(@Nullable Context context) {
        super(context, name, null, dbVersion);
    }

    @Override
    public void onCreate(SQLiteDatabase db) {
        db.execSQL("create table dataContent(userid integer primary key autoincrement,teleprompter text)");   //数据表
    }

    @Override
    public void onUpgrade(SQLiteDatabase sqLiteDatabase, int i, int i1) {

    }
}
